<!-- 砸金蛋未中奖弹窗 -->
<template>
	<view class="regret-child" v-if="show">
		<view class="mask pa"  @tap="close"/>
		<view class="content pa">
			<image :src="regret" mode="" />

			<view class="text pa">很遗憾未中奖</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			show: {
				type: Boolean,
				default: true
			}
		},
		data() {
			return {
				regret: this.imgUrl + 'regret_zzj.png'
			}
		},
		
		methods: {
			close() {
				this.$emit('close')
			}
		}
	}
</script>

<style lang="scss" scoped>

	.regret-child {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 998;
		display: flex;
		justify-content: center;
		align-items: center;

		.mask {
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			z-index: 998;
			background-color: rgba($color: #000000, $alpha: 0.7);
		}
		
		.content {
			z-index: 999;
			image {
				width: 512rpx;
				height: 634rpx;
			}
			
			.text {
				color: #FFF;
				font-size: 46rpx;
				bottom: 116rpx;
				left: 120rpx;
			}
		}
	}
</style>
